package com.dragons.dragonsvf.config;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragons.dragonsvf.dao.ModulesInformationMapper;
import com.dragons.dragonsvf.entities.ModulesInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Dragons.G
 * @date 2025-05-05 21:25:56
 * @description minio
 */
@Service
public class ModuleConfigService {
    @Autowired
    private ModulesInformationMapper modulesInformationMapper;

    public ModulesInformation getMinioConfig() {
        QueryWrapper<ModulesInformation> wrapper = new QueryWrapper<>();
        wrapper.eq("module_name", "minio");
        return modulesInformationMapper.selectOne(wrapper);
    }
}
